//
//  KKMyMessageDetailVC.m
//  DoMi
//
//  Created by 康凯 on 2016/12/10.
//  Copyright © 2016年 kk. All rights reserved.
//

#import "KKMyMessageDetailVC.h"
#import "KKMyHttp.h"

@interface KKMyMessageDetailVC ()
@property (weak, nonatomic) IBOutlet UILabel *msgTitle;
@property (weak, nonatomic) IBOutlet UILabel *msgTime;
@property (weak, nonatomic) IBOutlet UILabel *msgContent;

@end

@implementation KKMyMessageDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"消息详情";
    self.msgTitle.text=self.title1;
    self.msgContent.text=self.content;
    self.msgTime.text=self.time;
    
    [self readMessage];
}

#pragma mark 读消息
-(void)readMessage{
    [self showDialog];
    [KKMyHttp readMessage:self.msgId success:^(id data) {
        [self dismissDialog];
    } failure:^(NSError *error) {
        [self dismissDialog];
    }];
}
@end
